﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyTodoApi.Services
{
    public interface IBaseSevice<TDto,T> where T : class
    {
        Task<ApiResponse> AddAsync(TDto  dto);
        Task<ApiResponse> UpdateAsync(TDto dto);
        Task<ApiResponse> GetAsync();
        Task<ApiResponse> GetById(int id);
        Task<ApiResponse> Delete(int id);
    }
}
